package com.joelapenna.foursquare.maps;


import org.cigo.timemachine.CigoItemType;

import android.graphics.drawable.Drawable;
import com.google.android.maps.ItemizedOverlay;
import com.google.android.maps.OverlayItem;
import com.joelapenna.foursquare.types.Group;

/**
 * 
 * @author Joe LaPenna(https://code.google.com/p/foursquared/)
 *
 */
public class BaseItemizedOverlay<T extends CigoItemType> extends ItemizedOverlay<OverlayItem> {
	Group<T> group = null;
	public BaseItemizedOverlay(Drawable defaultMarker) {
		super(defaultMarker);
		// TODO Auto-generated constructor stub
	}

	@Override
	protected OverlayItem createItem(int arg0) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int size() {
		if (group == null) {
			return 0;
		}
		return group.size();
	}
	
	public void setGroup(Group<T> g){
		assert g.getType() != null;
		group = g;
        super.populate();
	}

}
